Skip to main content

Span Calculator

This calculates the margin requirement for a list of input positions.

Request to be POSTed to uri : /NorenWClientTP/SpanCalc

Request Details :

Json FieldsPossible valueDescription
jData*Should send json object with fields in below list
Json FieldsPossible valueDescription
actid*Any Account id, preferably actual account id if sending from post login screen.
posArray of json objects. (object fields given in below table)

Position structure as follows:

Json Fields of object in values ArrayPossible valueDescription
prd*M/IProduct name
exch*NFO, CDS, MCX ...Exchange
instname*FUTSTK, FUTIDX, OPTSTK, FUTCUR...Instrument name
symname*USDINR, ACC, ABB,NIFTY..Symbol name
exd*06-DEC-2022DD-MMM-YYYY format
opttCE, PEOption Type
strprc11900.00, 71.0025Strike price
buyqtyBuy Open Quantity
sellqtySell Open Quantity
netqtyNet traded quantity
NOTE: In buyqty ,sellqty and netqty any one of the parameter compulsory.

Response Details :

Response data will be in json format with below fields.

Json FieldsPossible valueDescription
statOk or Not_OkMarket watch success or failure indication.
spanSpan value
expoIExposure margin
span_tradeSpan value ignoring input fields buyqty, sellqty
expo_tradeExposure margin ignoring input fields buyqty, sellqty